package cn.tedu.online.examination.system.test;

import javax.swing.*;
import java.awt.*;

/**
 * @author JokerQ
 * @date 2020/6/10 - 12:38
 */
public class TextDemo extends JFrame {
    public TextDemo(){
        this.setSize(800,600);

        JTextField jTextField = new JTextField(20);
        JPasswordField jPasswordField   = new JPasswordField(20);
        JPanel jPanel = new JPanel();
        jPanel.add(jTextField);
        jPanel.add(jPasswordField);
        this.add(jPanel);
        this.setVisible(true);
        this.setLocationRelativeTo(null);
    }
    public static void main(String[] args) {
        new TextDemo();
    }
}
